package com.liaogui.内部类;

/**
 * @author liaogui
 * @date 2025/4/13 13:24
 */
public class 成员内部类 {
    private String outerField = "Outer Field";

    private void outerMethod() {
        System.out.println("outerMethod");
    }

    class InnerClass {
        void display() {
            System.out.println(outerField);
            outerMethod();
        }
    }

    public static void main(String[] args) {
        System.out.println("111");
    }
}
